package com.spring.mvc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.spring.mvc.dao.NewsDAO;
import com.spring.mvc.pojo.CallResult;
import com.spring.mvc.service.NewsService;

@Service
public class NewsServiceImpl implements NewsService {
	
	@Autowired
	private NewsDAO newsDAO;

	public CallResult findById(int id) {
		CallResult result=newsDAO.getById(id);
		return result;
	}

}
